package cn.wolfcode.luowowo.shop.domain;

import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.common.domain.BaseDomain;
import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

/**
 * 物品归类
 */
@Setter
@Getter
public class ShopStrategy extends BaseDomain{
    public static final boolean STATE_HOT = true;
    public static final boolean STATE_NORMAL = false;
    private ShopStrategy parent; //本类的父类id

    private ShopStrategyTheme theme;//主题

    private String name;//购物大攻略

    private String english;//英文

    private String pinyin;//拼音

    private Boolean ishot;//是否热门

    private String coverUrl;//背景

    private String info;//此攻略的坚决

    private Integer deep; //类似分级别,鞋子-男鞋-篮球鞋

    public String getJsonString(){
        Map<String, Object> map = new HashMap<>();
        map.put("info",info);
        map.put("id",id);
        return JSON.toJSONString(map);
    }
    public String getHotDisplay(){
        return ishot ? "是":"否";
    }
    //子地区

}